package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 亲社会行为订单对象 tb_activity_order
 * 
 * @author ruoyi
 * @date 2025-07-11
 */
public class TbActivityOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 下单的用户id */
    @Excel(name = "下单的用户id")
    private Long userId;

    /** 租赁的房屋id */
    @Excel(name = "租赁的房屋id")
    private Long activityId;

    /** 1报名 2取消报名 3已完成活动 */
    @Excel(name = "1报名 2取消报名 3已完成活动")
    private Integer status;

    /** 退款时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退款时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cancelTime;

    /** 入住日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入住日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date activityStartTime;

    /** 退租日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退租日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date activityEndTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setActivityId(Long activityId) 
    {
        this.activityId = activityId;
    }

    public Long getActivityId() 
    {
        return activityId;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setCancelTime(Date cancelTime) 
    {
        this.cancelTime = cancelTime;
    }

    public Date getCancelTime() 
    {
        return cancelTime;
    }

    public void setActivityStartTime(Date activityStartTime) 
    {
        this.activityStartTime = activityStartTime;
    }

    public Date getActivityStartTime() 
    {
        return activityStartTime;
    }

    public void setActivityEndTime(Date activityEndTime) 
    {
        this.activityEndTime = activityEndTime;
    }

    public Date getActivityEndTime() 
    {
        return activityEndTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("activityId", getActivityId())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("cancelTime", getCancelTime())
            .append("activityStartTime", getActivityStartTime())
            .append("activityEndTime", getActivityEndTime())
            .toString();
    }
}
